<script setup lang="ts">
function reload() {
  location.reload();
}
</script>

<template>
  <div class="w-60 flex items-start rounded-l-3 from-brand to-sys-layer-b bg-gradient-to-r p-3" @click="reload()">
    <img class="mr-3 block h-auto w-14 flex-none scale-110 -mb-1 -mt-3.5 -translate-y-1" src="../../assets/imgs/update-s2.png">
    <div class="line-clamp-3 flex-1 self-center text-xs text-sys-text-head">
      {{ $t('aCqSlc97iZj2TsWrpLw') }}
    </div>
  </div>
</template>

<style lang="scss" scoped>
:global(.ant-notification-notice.tt-announcement) {
  width: fit-content;
  padding: 0;
  margin-right: -24px;
  overflow: initial;
  background: none;
  border-radius: 0;
}

:global(.ant-notification-notice.tt-announcement .ant-notification-notice-message) {
  display: none;
}

:global(.ant-notification-notice.tt-announcement .ant-notification-notice-close) {
  top: 0;
  right: auto;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: white;
  background: theme('colors.sys.layer.b');
  border-radius: 99px;
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 80%);
  transform: translate(-50%, -50%);
}

:global(.ant-notification-notice.tt-announcement .ant-notification-close-x) {
  display: block;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1em;
}
</style>
